import Color.Blue;
import Color.Green;
import Color.IColor;
import Color.Red;
import Pan.AColorUser;
import Pan.LaBi;
import Pan.Pan;

public class App {
    public static void main(String[] args) throws Exception {
        System.out.println("Hello, World!");

        IColor color = new Red();
        AColorUser colorUser = new Pan(color);
        System.err.println(colorUser.UserFunc());
        color = new Blue();
        colorUser.SetColor(color);
        System.err.println(colorUser.UserFunc());
        colorUser = new LaBi(color);
        System.err.println(colorUser.UserFunc());
        colorUser.SetColor(new Green());
        System.err.println(colorUser.UserFunc());
    }
}
